package com.ljw.spring.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ljw.spring.test.helloworld.HelloWorld;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ){
        ApplicationContext context = new ClassPathXmlApplicationContext("spring/beans/beans.xml");
        HelloWorld obj = (HelloWorld)context.getBean("helloBean");
        obj.printHello();
    }
}
